package com.tank.model;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * TODO
 *
 * @author chenwb
 * @since 2024/1/28 13:59
 */
public class HeroTank extends Tank {
    public HeroTank(int x, int y) {
        super(x, y);
    }

    private final ExecutorService executorService = Executors.newFixedThreadPool(10);

    @Override
    public void fire() {
        super.fire();
        // Submit a task to the ThreadPoolExecutor
        // executorService.submit(AudioFactory.getInstance().getFireAudio()::play);
    }

    @Override
    public void move() {
        super.move();
        // executorService.submit(AudioFactory.getInstance().getTankMoveAudio()::play);
    }
}
